<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class Deposite extends Model
{

    protected $table = 'deposite';


    //充值类型(1正常投入2赠送投入)
    const TYPE_ONE = 1;
    const TYPE_TWO = 2;
    const TYPE_SAN = 3;


    public static $rechargeType = [
        self::TYPE_ONE  =>  '正常投入',
        self::TYPE_TWO  =>  '赠送投入',
        self::TYPE_SAN  =>  '产品投入',
    ];


    public function admin_user()
    {
        return $this->belongsTo(AdminUser::class, 'user_id', 'id');
    }

    public function admin_ids()
    {
        return $this->belongsTo(AdminUser::class, 'admin_id', 'id');
    }

}
